import requests
from config import url_cloud,headers_web

class laboratoryOpenTime:
    def __int__(self):
        self.url = url_cloud
        self.headers = headers_web

    @classmethod
    def post_addlaboratoryopentime(cls,url_cloud:str,headers=headers_web,params=None,json=None):
        '''
        summary:新增预约时间段
        description：云课堂web管理调用
        :param url_cloud:
        :param headers:
        :param params:
        :param json:
        :return:
        '''
        url = url_cloud + "/teachinglaboratoryapi/v1/laboratoryopentime/creationlaboratoryopentime"
        r = requests.post(url=url,params=params,headers=headers,json=json)
        return r